package me.zhengjie.face.config;

import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 获取腾讯云服务的secretId和secretKey
 * @author xiahongbo
 * @description
 * @date 2023-11-17
 **/
@Configuration
@Getter
public class FaceConfig {

    public static String secretId;

    public static String secretKey;

    public static String apiUrl;

    @Value("${tencent.secretId}")
    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }

    @Value("${tencent.secretKey}")
    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    @Value("${tencent.apiUrl}")
    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }
}
